﻿<CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaAlert Type="AlertTypes.Warning" Class="mb-3" Color="tertiary">
    此部分仅作用于专题页，具体请参阅 <a href="/articles/index/2350" class="tertiary--text fw-bold">《专题页介绍》</a>
</CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaAlert>

<CnGalWebSite.Components.Containers.MasaTitleContainer Icon="@IconType.Style.ToIconString()" Title="专题页样式补充信息" Class="@Class" Collapable @bind-IsCollapsed="IsCollapsed">
     <MRow>
         <MCol Cols="12" Md="6" Lg="4">
             <CnGalWebSite.Components.Images.UploadButton @bind-ImagePath="@Model.Logo" Type="ImageAspectType.None" Text="上传Logo" Class="mb-4" />
         </MCol>
         <MCol Cols="12">
         </MCol>
         <MCol Cols="12" Md="6">
             <MTextField @bind-Value="Model.SubTitle" Label="副标题" />
         </MCol>
         <MCol Cols="12" Md="6">
             <MTextField @bind-Value="Model.Impressions" Label="主题语句" />
         </MCol>
         <MCol Cols="12" Md="6">
             <MTextField @bind-Value="Model.Color" Label="主题颜色" />
         </MCol>
     </MRow>
     <SectionTitleCard Title="图片" Text="包括轮播图和背景图" />
     <CnGalWebSite.Components.Images.ImageListEditorCard Model="Model.Images" TValue="EditWebsiteImageModel">
         <ItemContent>
             @{
                var _temp = context as EditWebsiteImageModel;
            }
            <MCol Cols="12" Md="6">
                <CnGalWebSite.Components.Inputs.MasaSelecte @bind-Value="_temp.Type" TValue="EntryWebsiteImageType" Label="类型" />
            </MCol>
            <MCol Cols="12" Md="6">
                <CnGalWebSite.Components.Inputs.MasaSelecte @bind-Value="_temp.Size" TValue="EntryWebsiteImageSize" Label="大小" />
            </MCol>

        </ItemContent>
    </CnGalWebSite.Components.Images.ImageListEditorCard>


    <CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaAlert Type="AlertTypes.Warning" Class="primary">
        SSR模式下会拦截不受信任的源和内联脚本，请与管理员联系以添加脚本
    </CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaAlert>
    <SectionTitleCard Title="自定义Html" Text="将会覆盖整个页面" />
    <CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaHtmlEditor @bind-Context="Model.Html" />


    <SectionTitleCard Title="自定义首页" Text="可使用Html" />
    <CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaHtmlEditor @bind-Context="Model.FirstPage" />

    <SectionTitleCard Title="自定义介绍" Text="可使用Html" />
    <CnGalWebSite.Shared.MasaComponent.Shared.Components.MasaHtmlEditor @bind-Context="Model.Introduction" />

</CnGalWebSite.Components.Containers.MasaTitleContainer>
@code {
    [Parameter]
    public EditEntryWebsiteViewModel Model { get; set; }
    [Parameter]
    public string Class { get; set; }
    [Parameter]
    public bool IsCollapsed { get; set; } = true;

}
